package cn.cdqf.coupon.dispatch.dao;



import cn.cdqf.coupon.dispatch.entity.CouponCodeUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponCodeUserMapper {
    int deleteByPrimaryKey(String cCouponCode);

    int insert(CouponCodeUser record);

    int insertSelective(CouponCodeUser record);

    CouponCodeUser selectByPrimaryKey(String cCouponCode);

    int updateByPrimaryKeySelective(CouponCodeUser record);

    int updateByPrimaryKey(CouponCodeUser record);

    void batchInsert(@Param("list") List<String> list, @Param("merchantId") String getcMerchantId, @Param("couponId") String couponId);

    int updateUserIdByCode(@Param("code") String code, @Param("userId") String userId);


    List<String> queryByCouponId(@Param("couponId") String couponId);

    void insertCouponCodeByCouponId(@Param("couponId") String couponId,@Param("code") String code);

    int selectCountByUser(@Param("userId") String userId);

}